package Java.BlackHorse.IO.printStream;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;

public class IODemo1 {
    public static void main(String[] args) throws IOException {
//        创建打印流
        PrintWriter pw = new PrintWriter(new FileWriter("IO\\printStream\\print.txt"),true);
        pw.println("Hello World!");
        pw.printf("%s %s","aaa","bbb");
        pw.close();
    }
}
